package cn.ty.znsz.index;

import com.jfinal.aop.Inject;
import com.jfinal.core.Controller;
import com.jfinal.core.Path;
import com.jfinal.kit.Ret;



/**
 * IndexController
 */
@Path(value = "/", viewPath = "/index")
public class IndexController extends Controller {
	
	@Inject
	IndexService is;
	
	/**
	 * 首页
	 */
	public void index() {
		render("index.html");
	}
	public void main() {
		render("main.html");
	}
	/**
	 * 获取菜单列表
	 */
	public void getMenus() {
		Ret ret=is.getMenus(getCookie("jznsz"));
		renderJson(ret);
	}
}



